set(json_str [=[{
    "name":"tom",
    "age":18,
    "hobby":["basketball","football"]
}]=])
message(${json_str})

string(JSON name GET "${json_str}" name) # tom
string(JSON age GET "${json_str}" age) # 18
string(JSON hobby0 GET "${json_str}" hobby 0) # ["basketball","football"]

message(${name})# tom
message(${age})# 18
message(${hobby0})# basketball